import 'package:get/get.dart';

class AppRoutes {
  static const String splash = '/splash';
  static const String phone = '/phone';
  static const String code = '/code';
  static const String h5 = '/h5';
  static const String home = '/home';

  static Map<String, String> routeMap = {
    splash: 'splashpage',
    phone: 'loginphone',
    code: 'logincode',
    h5: 'termpage',
    home: 'homepage'
  };

  static String getCurrentPageName() {
    return routeMap[Get.currentRoute] ?? '';
  }
}

